package com.tsmti.system.entity;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Where;

import javax.persistence.*;
import java.io.Serializable;

/**
 * Title：PimsSystem
 * Class：com.ts.sys.entity
 * Comapny:
 *
 * @author：zcw
 * @version：2.5 CreateTime：2018/1/17 10:25
 * Modify log:
 * Description：
 */
@Entity
@Table(name = "pims_rolemenu")
@DynamicUpdate
@DynamicInsert
public class RoleMenu implements Serializable {
    private static final long serialVersionUID = 1064338960564542976L;

    /** 菜单编号 */
    private Long menuId;

    /** 角色编号 */
    private Long roleId;

    /** 编号 */
   private Long id;

    /**
     * 获取 id
     *
     * @return: String 编号
     */
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_ROLEMENU")
    @SequenceGenerator(name = "SEQ_ROLEMENU", sequenceName = "rolemenu_sequence", allocationSize = 1)
    public Long getId() {
        return this.id;
    }

    /**
     * 设置 id
     * @param: id编号
     */
    public void setId(Long id) {
        this.id = id;
    }

    public Long getMenuId() {
        return menuId;
    }

    public void setMenuId(Long menuId) {
        this.menuId = menuId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

}
